<?php

namespace app\admin\controller\workteam;

use app\common\controller\Backend;
use think\exception\DbException;
use think\response\Json;

/**
 * 日历管理
 *
 * @icon fa fa-calendar
 */
class Calendar extends Backend
{

    /**
     * Calendar模型对象
     * @var \app\admin\model\Calendar
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new \app\admin\model\Calendar;
        $this->view->assign("statusList", $this->model->getStatusList());
    }

	/**
     * 查看
     *
     * @return string|Json
     * @throws \think\Exception
     * @throws DbException
     */
    public function index($target_type = null)
    {
		$this->assignconfig('target_type', $target_type);

        //设置过滤方法
        $this->request->filter(['strip_tags', 'trim']);
        if (false === $this->request->isAjax()) {
            return $this->view->fetch();
        }
    }


}
